load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test")
load("@io_bazel_rules_go//tests:bazel_tests.bzl", "bazel_test")

go_test(
    name = "go_default_test",
    size = "small",
    srcs = ["version_test.go"],
    tags = ["manual"],
)

bazel_test(
    name = "custom_go_toolchain",
    command = "test",
    config = "fetch",
    go_version = "",
    tags = ["dev"],
    targets = [":go_default_test"],
    workspace = """

load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk")
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")

go_download_sdk(
    name = "go_sdk",
    sdks = {
        "linux_amd64":       ("go1.10.1.linux-amd64.tar.gz", "72d820dec546752e5a8303b33b009079c15c2390ce76d67cf514991646c6127b"),
        "darwin_amd64":      ("go1.10.1.darwin-amd64.tar.gz", "0a5bbcbbb0d150338ba346151d2864fd326873beaedf964e2057008c8a4dc557"),
    },
)

go_rules_dependencies()

""",
)
